﻿/// <reference path="~/Scripts/lib/knockout-2.2.0.js" />
/// <reference path="~/Scripts/app/timer.js" />

/**
@title:        activity
@description:  Activity entity supports functionality of activity element on UI.
@author:       Yuriy Shapovalov (shapovalov.yuri@gmail.com)
*/

define('activity',
    ['ko', 'timer'],
    function (id, name) {
        var
            self = this;
            self.id = id;
            self.name = name;
            self.time = ko.observable("Assigned");
            self.timer;

        return {
            id: self.id,
            name: self.name,
            time: self.time,
            timer: "trololo" // self.timer || new Timer(id, self.time)
        }
    });